#!/bin/bash

cpupower -c all frequency-set -g performance
#cpupower -c all frequency-set -g powersave
ulimit -c unlimited

ibdev_id=0
ibdev_base_port=1
MEMCACHED_SERVER_IP="192.168.25.8"
MEMCACHED_SERVER_PORT=1111
./main -C 1					\
       --base-port-index=$ibdev_base_port -device-id=$ibdev_id \
       --memcached-server-ip=$MEMCACHED_SERVER_IP \
       --memcached-server-port=$MEMCACHED_SERVER_PORT \
       --blk-size=1024 \
       --test-mode=send \
       --iter=500000 \
       --num-qps=1
       
exit 0
sleep 1
for (( i=0 ; i<=10000 ; i++))
do 
      ./main -C 1					\
       --base-port-index=$ibdev_base_port -device-id=$ibdev_id \
       --memcached-server-ip=$MEMCACHED_SERVER_IP \
       --memcached-server-port=$MEMCACHED_SERVER_PORT \
       --blk-size=$i \
       --test-mode=write \
       --iter=100000 \
       --num-qps=1
  sleep 0.2
done

